package com.cci.kangdao.fieldService.dao;

import com.cci.kangdao.fieldService.model.FieldServiceItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FieldServiceItemDao {
    int deleteByPrimaryKey(Long id);

    int insert(FieldServiceItem record);

    int insertSelective(FieldServiceItem record);

    FieldServiceItem selectByPrimaryKey(Long id);

    FieldServiceItem selectByChannelAndCrmNo(@Param("channel") Long channel,@Param("crmItemNo") String crmNo);

    List<FieldServiceItem> getOpenItemList(@Param("channel") Long channel, @Param("systemTime") String systemTime);

    int updateByPrimaryKeySelective(FieldServiceItem record);

    int updateCompleteCount(FieldServiceItem record);

    int updateByPrimaryKey(FieldServiceItem record);
}